class Person implements Cloneable{
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}


public class Test {
    public static void main1(String[] args) throws CloneNotSupportedException {
        Person person=new Person();
        Person person1=(Person) person.clone();
    }
    public static void func(){
     int[] arr={1,2,3};
        System.out.println(arr[4]);
    }
    public static void main(String[] args) {
        try{
            int n=10;
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("捕获数组越界异常");
            e.printStackTrace();
        }
    }
}
